<%--
  Created by IntelliJ IDEA.
  User: sansanmiaokou
  Date: 2025/11/20
  Time: 11:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<jsp:useBean id="user" class="com.example.entity.User"></jsp:useBean>

<jsp:setProperty name="user" property="username" value="lisi"></jsp:setProperty>
<jsp:setProperty name="user" property="password" value="444444"></jsp:setProperty>
<jsp:setProperty name="user" property="sex" value="man"></jsp:setProperty>

姓名：<jsp:getProperty name="user" property="username"></jsp:getProperty>
密码：<jsp:getProperty name="user" property="password"></jsp:getProperty>
性别：<jsp:getProperty name="user" property="sex"></jsp:getProperty>
</body>
</html>
